package com.wangsd.web.sys.mapper;

import com.gitee.fastmybatis.core.mapper.CrudMapper;
import com.wangsd.web.sys.entity.SysCompany;
import org.apache.ibatis.annotations.Update;

public interface SysCompanyMapper extends CrudMapper<SysCompany, Long> {

    @Update("update sys_company set profit_amount = profit_amount + #{amount} where id = #{id}")
    void updateProfitAmount(Integer amount, Long id);
}
